package demo5;

public class User {

    private int id;

    private String name;

    private String city;
    public static final String BEIGING = "北京";
    public static final String SHANGHAI = "上海";

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public User(int id, String name, String city) {

        this.id = id;

        this.name = name;

        this.city = city;
    }
}
